package nr.nodehost.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import nr.nodehost.mapper.ComponentMapper;
import nr.nodehost.model.Component;
import net.sf.json.JSONObject;

@Service
public class ComponentService {
	@Autowired
	private ComponentMapper dao;
	
	public List<Component> listAll(){
		return dao.listAll();
	}
	public List<Component> list(int start, int length,boolean order, String col,String orderDir,String filter){
		return dao.list(start, length, order, col, orderDir, filter);
	}
	

	public void add(Component component) {
		dao.add(component);
	}

}
